<template>
  <div class="hello">
    <p>GET</p>
    <input type="button" value="为给定 ID 的 user 创建请求" @click="m1" />
    <input type="button" value="可选地，上面的请求可以这样做1" @click="m2" />
    <input type="button" value="可选地，上面的请求可以这样做2" @click="m3" />
    <p>POST</p>
    <input type="button" value="执行 POST 请求" @click="m4" />
    <input type="button" value="执行多个并发请求" @click="m5" />
    <p>CONFIG</p>
    <input type="button" value="axios(config)" @click="m6" />
  </div>
</template>

<script>
import axios_util from "./axios_util.js";

export default {
  name: "HelloWorld",
  methods: {
    m1() {
      axios_util.methods.m1();
    },
    m2() {
      axios_util.methods.m2();
    },
    m3() {
      axios_util.methods.m3();
    },
    m4() {
      axios_util.methods.m4();
    },
    m5() {
      axios_util.methods.m5();
    },
    m6() {
      axios_util.methods.m6();
    },
  },
};
</script>
